from typing import List


class Solution:
    def isCovered(self, ranges: List[List[int]], left: int, right: int) -> bool:
        contain = [False] * 51
        for l, r in ranges:
            for i in range(l, r + 1):
                contain[i] = True
        return all(contain[left:right + 1])


if __name__ == "__main__":
    print(Solution().isCovered(ranges=[[1, 2], [3, 4], [5, 6]], left=2, right=5))  # True
    print(Solution().isCovered(ranges=[[1, 10], [10, 20]], left=21, right=21))  # False
